<template>
    <div class="basic-item">
        <span class="title">{{title}}：</span>
        <slot name="content">
            <span class="content">
                {{prefix}}{{content}}{{suffix}}
            </span>
        </slot>
    </div>
</template>

<script>
export default {
    name: "BasicItem",
    props:['title','content','suffix','prefix']
}
</script>

<style scoped>
*{
    /*border: 1px solid red;*/
}
.basic-item{
    margin:10px 0;
    width: 49%;
    display: flex;
    padding: 6px 0;
}
.title{
    display: inline-block;
    width: 140px;
}
.content{
    display: inline-block;
    width: 400px;
    padding: 3px 0 3px 10px;
    border-bottom: 1px solid lightgray;
    height: 20px;
}
</style>
